/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.agh.student.model;

import java.io.Serializable;
import javax.persistence.Embeddable;
import org.hibernate.validator.NotNull;
import org.hibernate.validator.Pattern;

/**
 *
 * @author janburkot
 */
@Embeddable
public class Address implements Serializable {

    private String street;
    private String postcode;
    private String city;

    //@NotNull
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    
    //@NotNull
    //@Pattern(regex="\\d{2}-\\d{3}")
    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    //@NotNull
    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }
    
}
